package exploit

import (
	"fmt"
	"github.com/cdk-team/CDK/pkg/cli"
	"github.com/cdk-team/CDK/pkg/plugin"
)

// plugin interface
type TEST struct{}

func (p TEST) Desc() string {
	return "this is the test script"
}
func (p TEST) Run() bool {
	// if your script needs input, handle `var lib.Args["<args>"]` by yourself.
	// example
	fmt.Printf("%v", cli.Args["<args>"].([]string))

	// functional codes
	fmt.Printf("\n[test] run success\n")

	// return [true/false] when [normal exit/fatal]
	return true
}

func init() {
	exploit := TEST{}
	plugin.RegisterExploit("test-poc", exploit)
}
